last_index_of

pure function last_index_of(text: text): integer

Returns the index within this text of the last occurrence of the specified string, or -1 if not found.

Since

0.9.0

Parameters

text

the substring for which to search


pure function last_index_of(text: text, max: integer): integer

Returns the index within this text of the last occurrence of the specified string, starting from the specified startIndex, or -1 if not found.

Since

0.9.0

Parameters

text

the substring for which to search

max

the index from which to start the reverse-search